#include "DmMainAfx.h"

#include "StretchTable.h"

#define STRETCH_CUBIC	(DWORD)0x00000000
#define STRETCH_BSPLINE	(DWORD)0x00000001
#define STRETCH_SINC	(DWORD)0x00000002

DWORD g_dwStretchKernel = STRETCH_BSPLINE;

/*XG32_API*/ BOOL SetStretchKernelMode(__in DWORD dwKernel)
{
	if (g_dwStretchKernel != dwKernel)
	{
		g_dwStretchKernel = dwKernel;
		InitStretchTable();
		return TRUE;
	}
	return FALSE;
}

/*XG32_API*/ DWORD GetStretchKernelMode()
{
	return g_dwStretchKernel;
}
